package org.github.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.github.core.redis.JsonRedisTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

@Configuration
public class RedisConfig {
    @Bean
    public JsonRedisTemplate jsonRedisTemplate(RedisConnectionFactory redisConnectionFactory, ObjectMapper objectMapper) {
        return new JsonRedisTemplate(redisConnectionFactory, objectMapper);
    }
}
